// ==UserScript==
// @match http://bbs.stuhome.net/read.php*
// @match http://bbs.auxten.com/read.php*
// @match http://bbs.uestc6.edu.cn/read.php*
// @match http://bbs.qshpan.com/read.php*
// @match http://bbs.germanyt.com/read.php*
// ==/UserScript//

getOptions(["UI.ShowIP"], (function(options)
{

if(!options.ShowIP)
	return;

var greys = document.getElementsByClassName("fr gray");
for(var i = 0; i < greys.length; ++i)
{
	var cur = greys[i];
	var ip = cur.children[0];
	if(ip && (ip.innerText || ip.textContent) == "来自∶")
		ip.innerText = ip.textContent = ip.title;

	var remove = cur.children[3];
	if(remove && (remove.innerText || remove.textContent == "删除选定") )
	{
		var onclick = remove.onclick;
		remove.onmouseover = (function()
		{
			var checkbox = this.parentElement.children[1];
			if(checkbox.title == "选定" && !checkbox.checked)
				checkbox.checked = true;
		});

		remove.onmouseout = (function()
		{
			var checkbox = this.parentElement.children[1];
			if(checkbox.title == "选定" && checkbox.checked)
				checkbox.checked = false;
		});
	}
}

}));

